-- msg_explore_target
-- Create by panyl
-- 天空探索目标

return function(lpc)
    local index = lpc.index;
    local data  = lpc.data;
    local isRefresh = lpc.is_refresh;

    local skyExplore = ME.user.dbase:query("sky_explore", {});
    skyExplore[index] = data;

    ME.user.dbase:set("sky_explore", skyExplore);

    -- 抛出探索事件，让天空之城界面刷新下
    EventMgr.fire(event.SKY_CITY_EXPLORE, { 
        ["index"] = index, 
        ["data"] = data, 
        ["isRefresh"] = isRefresh,
    });
end
